package com.example.clock_demo.entitys;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("scheduling")
public class Scheduling {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String teamName;
    private String teamCode;
    private String employeeName;
    private String employeeNumber;
    private LocalDate scheduleDate;
    private String shiftCode;

    private BigDecimal scheduledDurationHours; //排班时长（小时，带小数）
    private String workLocation;  // 上班地点
    private String offWorkLocation;   // 下班地点

}